package com.opensky.qatest.util.common;

import org.apache.commons.lang.StringUtils;

public class LogicUtils {

    public static boolean isURLEqual(String url1, String url2) {
	url1 = StringUtils.removeEnd(url1, "/");
	url2 = StringUtils.removeEnd(url2, "/");

	return url1.equals(url2);
    }

    public static boolean isAllTrue(boolean... cases) {
	for (int i = 0; i < cases.length; i++) {
	    if (!cases[i]) {
		return false;
	    }
	}
	return true;
    }
}
